import styled from "styled-components";

export const ShoppingContainer = styled.div`
  
  .shopping{
    width: 100vw;
    height: 90vh;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    .ShoppingCartEmpty{
      width: 120px;
      height: 120px;
      background-color: #d4d4d4;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 20vh;
      & img{
        width: 60px;
        height: 60px;
      }
    }
    .text{
      font-size: 30px;
      line-height: 100px;
    }
    .home_main{
      width: 85vw;
      height: 50px;
      background-color: #ff6600;
      color: #ffffff;
      text-align: center;
      line-height: 50px;
      font-size: 22px;
      border-radius: 5px;
    }
    .delete{ 
      width: 100vw;
      height: 6vh;
      background-color: #ffffff;
      display: flex;
      align-items: center;
      flex-direction: row-reverse;  // 从右边开始弹性布局
      .edit{
        font-size: 20px;
        width: 40px;
        line-height: 20px;
        margin-right: 15px;
      }
    }
    .warrper{
      width: 100vw;
      height: 77vh;
      background-color: #f5f5f5;
      display: flex;
      flex-direction: column;
      align-items: center; 
      .all_goods{
        display: flex;
        flex-direction: column;
        align-items: center;
        .goods{
          width: 92vw;
          height: 150px;
          background-color: #fff;
          border-radius: 10px;
          margin-top: 10px;
          display: flex;
          align-items: center;
          overflow: hidden;
          .svg{
            margin-left: 10px;
            margin-right: 10px;
          }
          .image{
            & img{
              background-color: #f7f7f7;
              width: 120px;
              height: 120px;
              border-radius: 10px;
            }
          }
          .container{
            width: 45vw;
            height: 150px;
            margin-left: 20px;
            /* background-color: red; */
            border-radius: 10px;
            overflow: hidden;
            .name{
              font-size: 18px;
              padding-top: 20px;
            }
            .box{
              width: 43vw;
              height: 30px;
              margin-top: 60px;
              display: flex;
              justify-content: space-between;
              align-items: center;
              .price{
                font-size: 20px;
                color: #ff6600;
              }
              .button{
                display: flex;
                justify-content: center;
                align-items: center;
                .count {
                  font-size: 20px;
                  width: 40px;
                  text-align: center;
                  margin-left: 5px;
                  margin-right: 5px;
                  background-color: #f9f9f9;
                  border-radius: 5px;
                }
              }

            }
          }
        }
      }
      
    }
    .footer{
      width: 100vw;
      height: 8vh;
      background-color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .box1{
        display: flex;
        justify-content: center;
        align-items: center;
        .svg{
          margin-left: 10px;
          margin-right: 10px;
          display: flex;
          justify-content: center;
          align-items: center;
        } 
        & span{
          font-size: 18px;
        }
      }
      .box2{
        display: flex;
        
        justify-content: center;
        align-items: center;

        .total_amount{
          font-size: 20px;
        }
        .add_price{
          color: #ff6600;
          font-size: 20px;
        }
        .settlement{
          width: 120px;
          height: 45px;
          border-radius: 45px;
          line-height: 45px;
          margin-right: 10px;
          margin-left: 5px;
          text-align:center;
          font-size: 20px;
          background-color: #dddddd;
          color: #ffffff;
        }
        .delete_goods{
          width: 80px;
          height: 30px;
          border: 1px solid #b2b2b2; 
          border-radius: 30px;
          margin-right: 10px;
          text-align: center;
          line-height: 30px;
          color: #7f7f7f;
          font-size: 18px;
        }
      }
      
    }
  }
  
`

export default ShoppingContainer